package com.coffee.order.service.sku.dao;

import com.coffee.order.api.sku.query.SkuOrderDetailPeriodizationQuery;
import com.coffee.order.service.sku.bean.SkuOrderDetailPeriodization;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SkuOrderDetailPeriodizationDao {
    public SkuOrderDetailPeriodization findById(Integer id);

    public SkuOrderDetailPeriodization findByIdForUpdate(Integer id);

    public List<SkuOrderDetailPeriodization> findByIds(@Param("idList") List<Integer> idList);

    public Integer count(@Param("param") SkuOrderDetailPeriodizationQuery param);

    public List<SkuOrderDetailPeriodization> page(@Param("param") SkuOrderDetailPeriodizationQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

    public List<SkuOrderDetailPeriodization> list(@Param("param") SkuOrderDetailPeriodizationQuery param);

    public SkuOrderDetailPeriodization findFirst(@Param("param") SkuOrderDetailPeriodizationQuery param);

    public Integer insert(SkuOrderDetailPeriodization param);

    Integer insertBatch(List<SkuOrderDetailPeriodization> list);

    public void updateById(@Param("param") SkuOrderDetailPeriodization param);

    public Integer deleteById(Integer id);

    public Integer deleteByIds(List<Integer> idList);

}